import { defineStore } from 'pinia'

export default defineStore("user", {
  state: () => ({
    flag: 'yes',
  }),

  getters: {

  },

  actions: {
    SET_PATH_DATA (value) {
      this.flag = value
    }
  },
  // 持久化存储
  persist: {
    enabled: true,
    strategies: [
      { storage: localStorage }
    ]
  }
})
